#include "popupwidget.h"
#include "ui_popupwidget.h"

popupWidget::popupWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::popupWidget)
{
    ui->setupUi(this);/*
    setWindowFlags(Qt::WindowStaysOnTopHint);
    setWindowFlags(Qt::FramelessWindowHint);
    setAttribute(Qt::WA_TranslucentBackground);
    setAttribute(Qt::WA_NoSystemBackground);*/
//    view = new QmlView(this);
//    view->viewport()->setAutoFillBackground(false);
}

popupWidget::~popupWidget()
{
    delete ui;
}

void popupWidget::changeEvent(QEvent *e)
{
    QWidget::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        ui->retranslateUi(this);
        break;
    default:
        break;
    }
}
